FROM node:10.15.3-alpine
MAINTAINER williewu
ENV NODE_ENV=production
ENV HOST 0.0.0.0
RUN mkdir -p /app
COPY . /app
WORKDIR /app
EXPOSE 3000
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install
RUN npm install sass-loader -D
RUN npm install node-sass -D
RUN npm run build
CMD ["npm", "start"]
